package com.wxxymaker.utils;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;

/**
 * @AUTHOR soft
 * @DATE 2018/8/16 20:36
 * @DESCRIBE
 */
public class TimeUtils {
    public static String now() {
        return LocalDateTime.now()
                .format(DateTimeFormatter.ofPattern(Const.timeFormat));
    }

    public static String nowDate() {
        return LocalDate.now().format(DateTimeFormatter.ISO_DATE);
    }

    public static String nowTime() {
        return LocalTime.now().format(DateTimeFormatter.ISO_TIME);
    }
}
